"use strict"
const egg = require("egg")
module.exports = class AdminController extends egg.Controller {
    async index(ctx) {
        const {siteConfig, htmlTemplate} = ctx.app.config
        await ctx.renderAsset("home.js", {siteConfig, htmlTemplate})
    }

    async oAuth2() {
        let {token = "", session_key = "", back_url = "home"} = this.ctx.query
        // token = "eb97fd412d35ce8c9669d945f4dc82a022c1acf6"
        // session_key = "svu1j3bgsamnfde1gwoo73xa11vfdth7"

        await this.ctx.render("login.tpl", {token, session_key,back_url})
    }
}
